package com.example.mapper;
import com.example.pojo.Company;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.vo.respvo.DeptTree;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 公司表 Mapper 接口
 * </p>
 *
 * @author wsl
 * @since 2022-04-12
 */
@Mapper
@Repository
public interface CompanyMapper extends BaseMapper<Company> {

    /**
     * 获取集团的组织架构
     * @return
     */
    List<DeptTree> selectCompanyWithDeptList();
}
